package pro.lingwu.station.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pro.lingwu.station.dto.db.Bus;

import java.util.List;

/**
 * @author @lingwu
 * @date created in 2021/11/17
 */
@Mapper
public interface BusMapper {

    void addBus(Bus bus);

    void rmBus(String busNum);

    Bus findBusBy(String busNum);

    void updateBus(@Param("bus") Bus bus, @Param("busNum") String busNum);

    List<Bus> getAllBuses();

    long getTotal();
    
}
